<html>
	<head>
	<!DOCTYPE html >
	<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>MAGSI</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width">

	<link rel="stylesheet" href="../../css/bootstrap.min.css" />
	<link rel="stylesheet" href="../../css/main.css" />
	<link rel="stylesheet" href="../../css/sl-slide.css" />
	<link rel="stylesheet" href="../../css/font-awesome.css" />
	<link rel="stylesheet" href="../../css/submenu.css" />
    
    <link rel="stylesheet" href="css/ceGrid.css" />
    
    <script src="../../js/jsmodal.js"></script>
    
    <script src="../../js/login/jquery-1.9.1.min.js"></script>
    <script src="../../js/login/bootstrap.min.js"></script>
    <script src="../../js/main.js"></script>
    <!--script para el login  -->
	
	<script src="../../js/login/modernizr-2.6.2-respond-1.1.0.min.js"></script>
	<link rel="shortcut icon" href="../../imagenes/ico/vaquita.ico">
	</head>
	
	<body>  
  		<header class="navbar navbar-fixed-top">
    		 <div class="navbar-inner">
            <div class="container">
                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <a id="logo" class="pull-left" href="../../index.php"></a>                
                <div class="nav-collapse collapse pull-right">
                    <ul class="nav">
                        <li class="active"><a href="../../index.php">Inicio</a></li> 
                         <li><a href="../MA_gestFinca.php">Gestión de Finca</a></li>
                        <li><a href="NuevaFinca.php">Registrar</a></li>
                         <li class="divider"></li>  
                          <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Usuario  <img src="../../imagenes/ico/down1.ico"/></a> 
                            <ul class="dropdown-menu">
                             <li class="login">   
                            <a data-toggle="modal" href="#loginForm"><img src="../../imagenes/ico/user3.ico"/>Sesión Iniciada</i></a>
                        </li> 
                        <li class="cerrar">  
                            <a data-toggle="modal" href="#cerrarForm"><img src="../../imagenes/ico/lock.ico"/>Cerrar Sesión</a>
                        </li> 
                               <li><a href="#"><img src="../../imagenes/ico/help.ico"/>Ayuda</a></li>
                            </ul>  
                        </li>  
                    </ul>        
                </div><!--/.nav-collapse -->
            </div>
        </div>
    </header>
    
    
	<section class="title">
    <div class="container">
      <div class="row-fluid">
        <div class="span6">
          <h3>Registro de Finca</h3>
        </div>       
      </div>
    </div>
  </section>
  <!-- / .title -->  
  
<!-- a href="index.php">Lista de fincas</a -->
<link rel="stylesheet" type="text/css" href="mtb.css" />
<link rel="stylesheet" type="text/css" href="tcal.css" />
<script type="text/javascript" src="tcal.js"></script>
<a href="../MA_gestFinca.php">lista de fincas</a>
   <section id="registration-page" class="container">
    <form class="center" action="../../../modelo/InsertFinca.php" method="POST">
      <fieldset class="registration-form">
        <div class="control-group">
        <h3>Registro de Fincas</h3><br />
       <h5>Ingrese los siguiente datos</h5> 
    </div>
    <!--Modal Body-->
    
    	 <section id="registration-page" >        
        <form class="center" action="../../../modelo/InsertFinca.php" method="post" id="form-finca">
        	<fieldset class="registration-form">
        		<table>
            <div class="control-group">
            	<tr>
            	<td><label >Código de finca</label></td>
            	<td><input type="text" name="MA_In_IdFinca" id="MA_In_IdFinca" class="peq" placeholder="11111111" maxlength="10" required='required' autofocus></td>
            	</tr></div>
            	<div class="control-group">
            	<tr>
            		<td><label>Nombre de finca</label></td>
            		<td><input type="text" name="MA_V_Nombre" id="MA_V_Nombre" class="input-small" placeholder="Nombre" required='required'></td>
            </tr></div>
            <div class="control-group">
            	<tr>
            	<td><label>Estado de finca</label ></td>
            	<td><select name="MA_V_Estado" id="MA_V_Estado" style="width: 10em;">
            		<option value="guana">Propia</option>
            		<option value="lim">Alquilada</option>
            		<option value="alan">Arrendada</option>
            		<option value="cart">Prestada</option>            		
            	</select></td>
            	</tr></div> <br />
            	
             <div class="control-group">
            	<tr>
            	<td><label>Hectáreas</label ></td>
            	<td><input type="text" class="input-samll" placeholder="11111111.1" maxlength="15"  onkeypress="return numero(event);"  /> </td>
            	</tr>
            
            <div class="control-group">
            	<tr><br />
            	<td><label>Provincia</label ></td> <td><label>Cantón</label></td> <td><label>Distrito</label></td>
            	<tr>
            	<td><select name="MA_V_Provincia" id="MA_V_Provincia" style="width: 10em;">
            		<option value="guana">Guanacaste</option>
            		<option value="lim">Limón</option>
            		<option value="alan">Alajuela</option>
            		<option value="cart">Cartago</option>
            		<option value="her">Heredia</option>
            		<option value="pun">Puntarenas</option>
            		<option value="sj">San José</option>
            	</select>
            	</td>
            	<td><select name="MA_V_Canton" id="MA_V_Canton" style="width: 10em;">
            		<option  value="lib">Liberia</option>
            		<option  value="ni">Nicoya</option>
            		<option  value="sta">Santa Cruz</option>
            		<option  value="bg">Bagaces</option>
            		<option  value="ca">Carrillo</option>
            		<option  value="cñ">Cañas</option>
            		<option  value="ab">Abangares</option>
            		<option  value="til">Tilarán</option>
            		<option  value="nan">Nandayure</option>
            		<option  value="lc">La Cruz</option>
            		<option  value="ho">Hojancha</option>
            		</select>
            	</td>
            	
            	<td><select name="MA_V_Distrito" id="MA_V_Distrito" style="width: 10em;">
            		<option  value="lib">Nicoyaa</option>
            		<option  value="ni">Mansión</option>
            		<option  value="sta">San Antonio</option>
            		<option  value="bg">Quebrada Honda</option>
            		<option  value="ni">Sámara</option>
            		<option  value="ni">Nosara</option>
            		<option  value="ni">Belén de Nosarita</option>            	
            		</select>
            	</td>
            	</tr>
            	</tr></div>            
                      
            <div class="control-group">
            	<tr>
            	<td><label>Comunidad</label></td>
             	<td><input type="text" name="MA_V_Comunidad" id="MA_V_Comunidad" class="input-small" placeholder="Comunidad" maxlength="30"></td>
            	</tr></div>
           <div class="control-group">
           		<tr>
           		<td><label>Dirección</label></td>
            	<td>
                <input type="text" class="input-small" placeholder="Dirección" name="MA_V_Direccion" id="MA_V_Direccion"  /></td>
            	</tr></div>
            <div class="control-group">
            	<tr>
            	<td><label>Latitud</label></td>
            	<td><input type="text" name="MA_Dc_Latitud" id="MA_Dc_Latitud" class="input-small" placeholder="0.99999"></td>
            	<td><label>Longitud</label></td>
            	<td><input type="text" class="input-small" name="MA_Dc_Longitud" id="MA_Dc_Longitud" placeholder="0.99999"></td>
            	</tr></div>
            	
            	<td><b>Acceso a la Finca</b> </td>
            <div class="control-group">
            	<tr>
            	<td><label>Fluido Eléctrico</label></td>
            	<td><input type="radio" name="ferti" value="1" id="fe1" >Si</td>  
            	<td><input type="radio" name="ferti" value="2" id="fe2">No </td> 
             	</tr></div>
             	
             	<table>
             		
             <div class="control-group">
            	<tr>
            	<td><label>Acceso a la finca</label></td>
            	<td><input type="text" class="input-small" placeholder="Acceso a la finca" maxlength="1000"></td>
            	
             	<!--<td><textarea rows="7" cols="30" name="acc" placeholder="Acceso a la finca" maxlength="1000"></td>-->
            	</tr></div>	
            	</table>
            	
            	
            
            <fieldset>
            	<legend>Dueño</legend>
            	<table>
            		<div class="control-group">
            	<tr>
            	<td><label>Número de Identificación</label></td>
            	<td><input type="text" name="MA_V_IdDueho" id="MA_V_IdDueho" class="input-small" placeholder="101110111" maxlength="10" required='required' autofocus></td>
            	</tr></div>
            	
            	<div class="control-group">
            		<tr><td><label>Nombre </label></td> <td><label>Primer Apellido</label></td> <td><label>Segundo Apellido </label></td>
            		</tr>
            	<tr>
            		<td><input type="text" name="MA_V_NombDueho" id="MA_V_NombDueho" class="input-small" placeholder="Nombre"  maxlength="30" required='required'></td>
           			<td><input type="text" name="MA_V_Apellido1" id="MA_V_Apellido1" class="input-small" placeholder="Apellido 1" maxlength="30" required='required' ></td>
            		<td><input type="text" name="MA_V_Apellido2" id="MA_V_Apellido2" class="input-small" placeholder="Apellido 2"  maxlength="30" required='required'></td>
                                 
            <div class="control-group">
            	<tr>
            		<td><label>Telefono<em></em> </label></td>
            		<td><input type="text" name="MA_V_Telefono" id="MA_V_Telefono" placeholder="5555-5555"  maxlength="10" required='required'></td>
            </tr></div>
            </table>
            	</table>
            </fieldset>
            
            <br />
            <div class="control-group">
            	<button type="submit" name="Agregar_Btn" id="Agregar_Btn" class="btn btn-primary">Registrar</button>
            </div>
           
          </fieldset>
        </form> 
        </section>       
    </div>
    <!--/Modal Body-->
 </div>
<!--  /Usuarioform -->    
		
 </table> 
   
 </form>


<script type="text/javascript">
function numero(e) {
 var codigo; 
 codigo = (document.all) ? e.keyCode : e.which; 
 if (codigo > 31 && (codigo < 48 || codigo > 57)) {
 return false;
 }
 return true;
}	
</script>

  <footer id="footer">
    <div class="container">
        <div class="row-fluid">
            <div class="span5 cp">
                &copy; 2014 <a target="_blank" href="http://shapebootstrap.net/" title="Free Twitter Bootstrap WordPress Themes and HTML templates">Ministerio Agricultura y Ganadería</a>. Todos los Derechos Reservados.
            </div>
            <div class="span6">
				<ul class="social pull-right">
					<li><a href="#"><img src="../../imagenes/logoU.jpg"/></a></li>
                    <li><a href="#"></a><img src="../../imagenes/mag.png"/></li> 
                </ul>
            </div>
            <div class="span1">
                <a id="gototop" class="gototop pull-right" href="#"><img src="../../imagenes/ico/up-.ico"/></a>
            </div>
            <!--/Goto Top-->
      </div>
    </div>
</footer>
	</body>
	
	
</html>